﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace UsingSinger
{
    public class SingersContext : DbContext
    {
        //利用依赖注入框架注入连接和SQL选项
        public SingersContext(DbContextOptions<SingersContext> options)
            : base(options) { }

        public DbSet<Singer> Singers { get; set; }
    }
}
